From: Florian Müllner Date: Wed, 5 Jun 2013 12:51:41 +0000 (+0200) Subject: dash: Minor cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4077 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=10b77a8305b9350752f45addf495a33812c70b5b;p=gnome-shell.git dash: Minor cleanup https://bugzilla.gnome.org/show_bug.cgi?id=684618 --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 79636fc49..a916de1ad 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -858,9 +858,9 @@ const Dash = new Lang.Class({ // Remove the drag placeholder if we are not in the // "favorites zone" - if (pos > numFavorites && this._dragPlaceholder) { + if (pos > numFavorites) this._clearDragPlaceholder(); - } + if (!this._dragPlaceholder) return DND.DragMotionResult.NO_DROP;